/**
 * description
 * <p>fill description</p>
 * @author zido
 * @since 2017/6/18 0018
 */

import {
  injectReducer
} from '../../../store/reducers'
export default (store) => ({
  breadcrumbName: '商家信息录入',
  path: 'add(/:id)',
  getComponent(nextState, cb) {
    require.ensure([], (require) => {
      const BusinessAdd = require('./containers/BusinessAddContainer').default
      const reducer = require('./modules/businessAdd').default

      injectReducer(store, {
        key: 'businessAdd',
        reducer
      })
      cb(null, BusinessAdd)
    }, 'BusinessAdd')
  }
})